package com.wesh.user;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class UserApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(UserApplication.class, args);
        /*String property = context.getEnvironment().getProperty("env.name");
        System.out.println("当前环境为：" + property);
        String username = context.getEnvironment().getProperty("common.username");
        System.out.println("获取到共享配置为："+username);
        String productCode = context.getEnvironment().getProperty("extension.product");
        System.out.println("获取到扩展配置为："+productCode);*/
    }

}
